package com.leigq.basaltools.bean;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 基础响应元数据枚举
 * <br/>
 * 包含响应码和信息
 *
 * @author leigq
 * @date 2021-05-13 18:05:59
 */
@AllArgsConstructor
@Getter
public enum MetaBase implements Meta {

    /**
     * 默认成功
     */
    DEF_SUCCESS(2000, "请求/处理成功！"),

    /**
     * 默认失败
     */
    DEF_FAIL(5000, "请求/处理失败！"),

    ;


    private final Integer code;

    private final String msg;

}
